function entity(map) {
    var arr = [];
    arr.push('');
    arr.push('<el-form :model="form_data" ref="search_from" label-width="100px">');
    var columns = map.columns;
    for (var i = 0; i < columns.length; i++) {
        var column = columns[i];

        arr.push('    <el-form-item label="' + column.columnComment + '" prop="' + column.camelName + '">');
        arr.push('        <el-input v-model="form_data.' + column.camelName + '" placeholder="' + column.columnComment + '"></el-input>');
        arr.push('    </el-form-item>');
    }
    arr.push('</el-form>');
    arr.push('');
    return arr.join("\r\n");
}


function main(map) {
    var arr = [];
    arr.push(entity(map));
    return arr.join('');
}

export default main;
